Open
Conversation
added 8 commits
November 3, 2024 14:53
username, password를 바탕으로 사용자를 식별하는 FormLoginInterceptor 구현
Basic Token을 디코딩하여 사용자 정보를 가져오는 BasicTokenDecoder 구현
Authorization Header의 Basic 토큰을 가져와 사용자를 식별하는 BasicAuthInterceptor 구현
Basic Token Prefix, Context_key 등 여러 클래스에서 사용하는 상수들을 하나의 클래스에서 관리할 수 있도록 변경
userDetailService의 구현체에서 관리하던 사용자 인증 로직을 security 하위 패키지에 있는 클래스들이 사용하도록 변경 refactor : 잘못된 줄바꿈 수정 불필요한 줄바꿈 제거
FormLoginAuthInterceptor의 parameter 정보와 세션정보를 검증하는 로직과 사용자가 맞는지 인증하는 로직을 별도의 메서드 분리 feat : SecurityConstants 빈 생성자 추가 해당 클래스가 오로지 상수용 클래스로만 사용될 수 있도록 private 빈 생성자 추가
BasicTokenDecoder가 app이 아닌 sercurity 패키지에 속하도록 변경하고 컴포넌트 스캔 범위를 app, security 패키지를 사용할 수 있게 SecurityAuthenticationApplication 위치 변경
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.